﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LyncServerExtension.Plugin.WebPage
{
    /// <summary>
    /// Class to represent an error page.
    /// </summary>
    public sealed class ErrorPage : LyncServerExtension.GenericResult.WebPage
    {
        private string message;

        /// <summary>
        /// Initializes a new instance of the <see cref="ErrorPage"/> class.
        /// </summary>
        /// <param name="message">The message.</param>
        public ErrorPage(string message)
        {
            this.message = message;
        }

        /// <summary>
        /// Gets the title.
        /// </summary>
        public override string Title
        {
            get { return "Error"; }
        }

        /// <summary>
        /// Gets the content.
        /// </summary>
        public override string Content
        {
            get { return message; }
        }
    }
}
